package com.zb.vo;

import com.zb.entity.KnowledgeTypeRelationVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import java.util.List;

/**
 * @Author WEN
 * @Date 2023/8/1 0001
 **/
@Data
@ApiModel("视频实体")
public class VideoVo {
    @ApiModelProperty(value = "视频ID，新增不传，修改必传", example = "")
    private Long id;

    @NotBlank(message = "视频名称不能为空")
    @Length(max = 20, message = "视频名称字符长度限制在20个以内")
    @ApiModelProperty(value = "视频名称", required = true, example = "")
    private String name;

    @ApiModelProperty(value = "视频图片路径")
    private String image;

    @ApiModelProperty(value = "是否禁用：false-启用，true-禁用")
    private Boolean status;

    @ApiModelProperty(value = "视频内容路径")
    private List<VideoPathVo> videoPaths;

    @ApiModelProperty(value = "删除的视频内容路径")
    private List<VideoPathVo> delVideoPaths;

    @ApiModelProperty(value = "知识库分类对象")
    private List<KnowledgeTypeRelationVo> knowledgeTypeVos;

    @ApiModelProperty(value = "删除知识库的关联对象ID")
    private List<Long> delRelationIds;


}
